/**
 * 组件的权限配置
 */
export interface PermitConfig {
    mode?: PermitConfigMode;
    permitId?: PermitConfigId;
    permitName?: string;
    authObjectId?: string;
}


export interface ZeprideAuthorityData {
    refObjectId: string;
    permitConfigs: PermitConfig[];
    target?: any;
    afterChecked?: (params: {
        permitId: PermitConfigId;
        isAuthorized: boolean;
    }) => void;
}

export type PermitConfigMode = 'query' | 'edit' | 'export';

export type PermitConfigId = '查看' | '编辑' | '导出' | '删除';
